package com.cuitrip.business.home.favorite;

import android.view.View;

import com.cuitrip.presenter.RecommendItemViewHolder;
import com.cuitrip.service.R;
import com.lab.component.list.viewholder.CTRecycleViewHolder;

import butterknife.Bind;

/**
 * Created by baziii on 15/8/10.
 */
public class FavoriteViewHolderCT extends CTRecycleViewHolder<TravelTrip> {
    public static int RES = R.layout.favorite_item;
    RecommendItemViewHolder serviceNonViewHolder;
    @Bind(R.id.ct_service)
    View mFavoriteLayout;


    public FavoriteViewHolderCT(View itemView, View.OnClickListener mOnClickListener) {
        super(itemView);
        mFavoriteLayout.setOnClickListener(mOnClickListener);
        serviceNonViewHolder = new RecommendItemViewHolder(mFavoriteLayout, mOnClickListener);
    }

    public void render(TravelTrip travelTrip, int position) {
        serviceNonViewHolder.render(travelTrip);
        mFavoriteLayout.setTag(travelTrip);
    }
}
